package cn.freeprogrammer.igen;

import cn.freeprogrammer.igen.generator.FreeGenerator;

/**
 * 命令行方式调用FreeGen的入口，传入配置文件地址做参数.
 * 
 * @author minwh
 *
 */
public class FreeGenRunner {
	
	public static void main(String[] args) throws Exception {
//		if (args.length < 1) {
//			throw new IllegalArgumentException("Needs config file path");
//		}
		
		String configFile = "E:\\java\\myworkspace\\igen\\igen-config.xml";//args[0];

		FreeGenerator freeGenerator = new FreeGenerator(configFile);
		freeGenerator.generate();
	}
}
